package com.rao.gmall.product.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rao.gmall.model.product.SkuInfo;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author nzmxfan
 * @create 2021-08-06-1:09
 */
public interface SkuInfoMapper extends BaseMapper<SkuInfo> {

    void updateStatus(@Param("skuId") Long skuId,@Param("status") int status);

    BigDecimal getSkuPrice(@Param("skuId") Long skuId);

    List<SkuInfo> getSkuInfos();

    List<Long> getAllIds();

}
